#ifndef CONTACTPANEL_H
#define CONTACTPANEL_H

#include <wx/event.h>
#include <wx/hyperlink.h>
#include <wx/odcombo.h>
#include <wx/bitmap.h>

#include "tux.h"


class ContactPanel : public wxPanel
{
friend class ContactTreeCtrl;
friend class MessengerPanel;

private:
	wxString userName;
	int userStatusIndex;

	wxBitmapButton* bitmapButton;

private:
	MessengerPanel* messengerPanel;
	wxStaticBitmap* userImage;
	wxHyperlinkCtrl* linkCtrl;
	wxMenu* statusMenu;
	wxTextCtrl* searchTextCtrl;
    ContactTreeCtrl* contactTreeCtrl;
	ContactTreeCtrl* searchTreeCtrl;

public:
    ContactPanel(MessengerPanel* mp);
    ~ContactPanel();

	void UpdateUIText();

    void SetUserName(const wxString& name);
    void SetUserStatus(const wxString& status);

protected:

	void OnChangeImage(wxCommandEvent& event);

	void OnUserLabelClicked(wxHyperlinkEvent& event);

	void OnChangeStatus(wxCommandEvent& event);

	void OnOptions(wxCommandEvent& event);
	void OnSignOut(wxCommandEvent& event);

	void OnSearchContact(wxCommandEvent& event);

	void OnSearchSetFocus(wxFocusEvent& event);
	void OnSearchKillFocus(wxFocusEvent& event);

DECLARE_EVENT_TABLE()
};

#endif


